/*
 This file is part of ParagliderDesk.
 Copyright (C) 2009 Benjamin Loulier 
 
 ParagliderDeck is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 ParagliderDesk is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with ParagliderDesk.  If not, see <http://www.gnu.org/licenses/>.
 
 File: Location.h
 
 Abstract: Object representing a Location, extension of CLLocation
 
 Version: 0.1
 
 TODO LIST :
 - See if an heritage wouldn't be better (apparently in objective-C it's not the easiest and clearest solution) ...
 - Look if properties are automatically released when the object is released or deallocated
 */

#import <Foundation/Foundation.h>


@interface Location : NSObject {
	CLLocation *coreLocationOutput;
	double verticalSpeed;
	double verticalSpeedAverage;
	double glideRatio;
	double glideRatioAverage;
	BOOL threeDFix;
}

@property(nonatomic,retain) CLLocation *coreLocationOutput;
@property(nonatomic,assign) double verticalSpeed, verticalSpeedAverage, glideRatio, glideRatioAverage;
@property BOOL threeDFix;

-(id) init:(CLLocation *)CoreLocation;
//Accessors
-(double) latitude;
-(double) longitude;
-(double) groundSpeed;
-(double) groundSpeedKMH;
-(double) altitude;
-(double) course;
-(NSDate *) timestamp;

@end
